home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / C64 / T-TPUG Old Monthly Disks / (c)tm.d64 / geography.c (.txt) < prev    next >
Commodore BASIC  |  2007-02-04  |  6KB  |  148 lines

  1. 100 REM GEOGRAPHY, CC BOOK 2
  2. 110 REM FIT TO PET BY ANDY GAMBLE NOV 79
  3. 120 I=0
  4. 130 CLR:POKE53280,1:POKE53281,1:PRINT"[151]"
  5. 140 REM COLUMBIA COLLEGE
  6. 150 REM 1619W 10 AVE VANCOUVER BC
  7. 160 PRINTCHR$(147)"        GEOGRAPHY"
  8. 170 PRINT:PRINT:PRINT"   PLEASE WAIT A MINUTE!"
  9. 180 A=345
  10. 190 DIMB$(346),U$(346)
  11. 200 FORI2=0TO345:U$(I2)="":NEXTI2
  12. 210 I=I+1:READB$(I)
  13. 220 IFI=345ORB$(I)="*"THEN240
  14. 230 GOTO210
  15. 240 PRINT: INPUT"DO YOU NEED INSTRUCTIONS (Y/N)";A$:IFA$<>"Y"THEN420
  16. 250 PRINTCHR$(147)"THIS IS THE GAME OF GEOGRAPHY[146].":PRINT
  17. 260 PRINT"ONE PLAYER NAMES A GEOGRAPHICAL LOCATION. THE OTHER PLAYER MUST NAME ";
  18. 270 PRINT"A LOCATION WHOSE FIRST[146] LETTER IS THE SAME AS THE   LAST[146] LETTER ";
  19. 280 PRINT"OF THE WORD BEFORE.":PRINT
  20. 290 PRINT"FOR EXAMPLE:"
  21. 300 PRINT"  DELHI-IRAN-NEBRASKA-ATHENS "
  22. 310 PRINT:PRINT"YOU WILL PLAY AGAINST THE COMPUTER.ONLY THE FOLLOWING CATEGORIES ";
  23. 320 PRINT"ARE ALLOWED:"
  24. 330 PRINT"CONTINENTS   COUNTRIES U.S.STATES
  25. 340 [153]"CANADIAN PROVINCES  MAJOR WORLD CITIES"
  26. 350 [153]"U.S. STATE CAPITALS  OCEANS & SEAS"
  27. 360 [153]:[153]"YOU'LL GET THE MESSAGE ILLEGAL WORDWAIT IF  ";
  28. 370 [153]"IT'S NOT IN THE COMPUTER'S ";
  29. 380 [153]"MEMORY. IF   YOU CAN'T THINK OF A CORRECT ANSWER, YOU ";
  30. 390 [153]"MAY TYPE 'PASS'. IF YOU'VE REALLY      EXHAUSTED ALL THE POSSIBLE ";
  31. 400 [153]"ANSWERS,     YOU'VE WON. IF THE COMPUTER CAN THINK OF AN ANSWER, ";
  32. 410 [153]"THEN YOU LOSE."
  33. 420 U[178]0:C[178]0:[153]:[133]" DO YOU WANT TO GO FIRST (Y/N)";A$
  34. 430 [153][199](147)
  35. 440 [153]:[139]A$[178]"N"[167]460
  36. 450 C[178]1:[137]480
  37. 460 R[178][181](([187](0)[172]26)[170]65)
  38. 465 R$[178][199](R):[137]620
  39. 470 C[178]0
  40. 480 [133]"WHAT'S YOUR WORD";A$:[139]C[178]1[167]520
  41. 490 [139]A$[178]"PASS"[167]770
  42. 500 [139][200](A$,1)[178]R$[167]520
  43. 510 [153]:[153]"LETTERS DON'T MATCH":[153]:[137]480
  44. 520 [129]E[178]1[164]U
  45. 530 [139]A$[179][177]U$(E)[167]550
  46. 540 [153]:[153]"ALREADY USED":[153]:[137]480
  47. 550 [130]E
  48. 560 [129]E[178]1[164]A
  49. 570 [139]A$[179][177]B$(E)[167]590
  50. 580 [137]610
  51. 590 [130]E
  52. 600 [153]:[153]"ILLEGAL WORD":[153]:[137]480
  53. 610 R$[178][201](A$,1):U[178]U[170]1:U$(U)[178]A$
  54. 620 G[178][181]([187]((0)[172]A)[170]1):H[178]A
  55. 630 [129]E[178]G[164]H
  56. 640 [139][200](B$(E),1)[179][177]R$[167]700
  57. 650 [129]I[178]1[164]U
  58. 660 [139]B$(E)[178]U$(I)[167]700
  59. 670 [130]I
  60. 680 [153]"MY WORD IS:       ";B$(E):U[178]U[170]1:U$(U)[178]B$(E)
  61. 690 R$[178][201](B$(E),1):[137]470
  62. 700 [130]E
  63. 710 [139]G[178]1[167]730
  64. 720 H[178]G:G[178]1:[137]630
  65. 730 [153]:[153]"YOU WIN!"
  66. 740 [133]"ANOTHER GAME (Y/N)";A$
  67. 750 [139]A$[178]"Y"[167]420
  68. 760 [137]1550
  69. 770 [143]
  70. 780 [129]E[178]1[164]A
  71. 790 [139][200](B$(E),1)[179][177]R$[167]840
  72. 800 [129]I[178]1[164]U
  73. 810 [139]B$(E)[178]U$(I)[167]840
  74. 820 [130]I
  75. 830 [153]B$(E):[153]:[153]"YOU LOSE":[137]740
  76. 840 [130]E:[137]730
  77. 850 [131]"NEW YORK","NEW JERSEY","PENNSYLVANIA","CONNECTICUT","ALABAMA"
  78. 860 [131]"VERMONT","NEW HAMPSHIRE","MAINE","FLORIDA","MASSACHUSETTS"
  79. 870 [131]"GEORGIA","SOUTH CAROLINA","RHODE ISLAND","UTAH","INDIANA"
  80. 880 [131]"NORTH CAROLINA","VIRGINIA","SOUTH DAKOTA","OHIO","OREGON"
  81. 890 [131]"NEW MEXICO","NORTH DAKOTA","WISCONSIN","MICHIGAN","IDAHO"
  82. 900 [131]"CALIFORNIA","MISSISSIPPI","KANSAS","NEBRASKA","IOWA"
  83. 910 [131]"WASHINGTON","MONTANA","MINNISOTA","KENTUCKY","TENNESSEE"
  84. 920 [131]"LOUISIANA","DELAWARE","MARYLAND","ARKANSAS","COLORADO"
  85. 930 [131]"ARIZONA","WEST VIRGINIA","TEXAS","NEVADA","OKLAHOMA"
  86. 940 [131]"WYOMING","MISSOURI","ALASKA","HAWAII","ILLINOIS"
  87. 950 [131]"ALBERTA","MANITOBA","SASKATCHEWAN","QUEBEC","ONTARIO"
  88. 960 [131]"PRINCE EDWARD ISLAND","NEW BRUNSWICK",NEWFOUNDLAND"
  89. 970 DATA"AFGHANISTAN","AFRICA","ALBANIA","ALGERIA","ANDORRA"
  90. 980 DATA"ANGOLA","ANTARCTICA","ARGENTINA","ASIA","AUSTRALIA"
  91. 990 DATA"AUSTRIA","BAHRAIN","BANGLADESH","BARBADOS","BELGIUM"
  92. 1000 DATA"BHUTAN","BOLIVIA","BOTSWANA","BRAZIL","BRITISH HONDURAS"
  93. 1010 DATABULGARIA","BURMA","BURUNDI","CAMBODIA","CAMEROON"
  94. 1020 [131]"CANADA","CENTRAL AFRICAN REPUBLIC","CEYLON","CHAD","CHILE"
  95. 1030 [131]"CHINA","COLUMBIA","CONGO","COSTA RICA","CUBA"
  96. 1040 [131]"CYPRUS","CZECHOSLOVAKIA","DAHOMEY","DENMARK","DOMINICAN REPUBLIC"
  97. 1050 [131]"ECUADOR","EGYPT","EL SALVADOR","ENGLAND","ETHIOPIA"
  98. 1060 [131]"EQUATORIAL GUINEA","EUROPE","FIJI","FINLAND","FRANCE"
  99. 1070 [131]"GABON","GAMBIA","EAST GERMANY","WEST GERMANY","GERMANY"
  100. 1080 [131]"GHANA","GREAT BRITAIN","GREECE","GUATEMALA","GUINEA"
  101. 1090 [131]"GUYANA","HAITI","HOLLAND","HONDURAS","HUNGARY"
  102. 1100 [131]"ICELAND","INDIA","INDONESIA","IVORY COAST","IRAN"
  103. 1110 [131]"IRAQ","IRELAND","ISRAEL","ITALY","JAMAICA"
  104. 1120 [131]"JAPAN","JORDAN","KENYA","SOUTH KOREA","NORTH KOREA"
  105. 1130 [131]"KUWAIT","LAOS","LEBANON","LESOTHO","LIBERIA"
  106. 1140 [131]"LIBYA","LIECHTENSTEIN","LUXEMBOURG","MALAWI","MALAYA"
  107. 1150 [131]"MALAGASY REPUBLIC","MALAYSIA","MALDIVES","MALI","MALTA"
  108. 1160 [131]"MAURITANIA","MAURITIUS","MEXICO","MONGOLIA","MOZAMBIQUE"
  109. 1170 [131]"NEPAL","NETHERLANDS","NEW ZEALAND","NICARAGUA","NIGER"
  110. 1180 [131]"NIGERIA","NORWAY","OMAN","PAKISTAN","PANAMA"
  111. 1190 [131]"PARAGUAY","PERU","PHILIPPINES","POLAND","PORTUGAL"
  112. 1200 [131]"QATAR","RHODESIA","RUMANIA","RWANDA","SAUDI ARABIA"
  113. 1210 [131]"SCOTLAND","SENEGAL","SIERRA LEONE","SINGAPORE","SOMALIA"
  114. 1220 [131]"SOUTH AFRICA","SOUTH AMERICA","NORTH AMERICA","SPAIN","SUDAN"
  115. 1230 [131]"SURINAM","SWAZILAND","SWEDEN","SWITZERLAND","SYRIA"
  116. 1240 [131]"TANZANIA","THAILAND","TOGO","TRINIDAD","TUNISIA"
  117. 1250 [131]"USSR","WALES","ZAIRE","YEMEN","ZAMBIA"
  118. 1260 [131]"UPPER VOLTA","URUGUAY","VATICAN CITY","VENEZUELA","UNITED KINGDOM"
  119. 1270 [131]"NORTH VIETNAM","SOUTH VIETNAM","RUSSIA","UNITED STATES","YUGOSLAVIA"
  120. 1280 [131]"TOKYO","LONDON","SHANGHAI","OSAKA","MOSCOW"
  121. 1290 [131]"BUENOS AIRES","PARIS","MEXICO CITY","CHICAGO","LOS ANGELES"
  122. 1300 [131]"CALCUTTA","PEKING","SAO PAULO","BOMBAY","DJAKARTA"
  123. 1310 [131]"SEOUL","RIO DE JANEIRO","CAIRO","PHILADELPHIA","DETROIT"
  124. 1320 [131]"HONG KONG","BERLIN","LENINGRAD","MANILA","NEW DELHI"
  125. 1330 [131]"BOSTON","KARACHI","MADRID","SAN FRANSISCO","WASHINGTON DC"
  126. 1340 [131]"SYDNEY","ROME","MILAN","SANTIAGO","MONTREAL"
  127. 1350 [131]"LIMA","BARCELONA","MELBOURNE","PITTSBURG","MANCHESTER"
  128. 1360 [131]"ST LOUIS","TORONTO","HAMBURG","BUDAPEST","CLEVELAND"
  129. 1370 [131]"BANGKOK","JOHANNESBURG","ATHENS","SINGAPORE","ISTANBUL"
  130. 1380 [131]"VIENNA","BRUSSELS","AMSTERDAM","GLASGOW","HAVANA"
  131. 1390 [131]"LISBON","WARSAW","COPENHAGEN","STOCKHOLM","PRAGUE"
  132. 1400 [131]"MONTGOMERY","JUNEAU","PHOENIX","LITTLE ROCK","SACRAMENTO"
  133. 1410 [131]"DENVER","HARTFORD","DOVER","TALLAHASSEE","ATLANTA"
  134. 1420 [131]"HONOLULU","BOISE","SPRINGFIELD","INDIANAPOLIS","DES MOINES"
  135. 1430 [131]"TOPEKA","FRANKFURT","BATON ROUGE","AUGUSTA","ANNAPOLIS"
  136. 1440 [131]"LANSING","ST PAUL","JACKSON","JEFFERSON CITY","HELENA"
  137. 1450 [131]"LINCOLN","CARSON CITY","CONCORD","TRENTON","SANTA FE"
  138. 1460 [131]"ALBANY","RALEIGH","BISMARCK","COLUMBUS","OKLAHOMA CITY"
  139. 1470 [131]"SALEM","HARRISBURG","PROVIDENCE","COLUMBIA","PIERRE"
  140. 1480 [131]"NASHVILLE","AUSTIN","SALT LAKE CITY","MONTPELIER","RICHMOND"
  141. 1490 [131]"OLYMPIA","CHARLESTON","MADISON","CHEYENNE","PACIFIC OCEAN"
  142. 1500 [131]"ATLANTIC OCEAN","INDIAN OCEAN","ARCTIC OCEAN","RED SEA","BLACK SEA"
  143. 1510 [131]"MEDITERRANEAN SEA","BERING SEA","NORTH SEA","BALTIC SEA","YELLOW SEA"
  144. 1520 [131]"CARIBBEAN SEA","GULF OF MEXICO","EAST CHINA SEA","HUDSON BAY"
  145. 1530 [131]"SEA OF JAPAN","SOUTH CHINA SEA","VANCOUVER","VICTORIA"
  146. 1540 [131]"YALTA","YANGTZE RIVER","YOKOHAMA","YUKON"
  147. 1550 [131]"*":[128]
  148.